package com.ynet.middleground.contract.bean;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author daigaole
 * @description 确认提交合约
 * @date 2020-04-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "确认提交合约", description = "确认提交合约")
public class ContractSubmissionReq extends BaseReqObj {

    private static final long serialVersionUID = -2650435821535102052L;

    @ApiModelProperty(value = "如果是修改合约确认提交，合约id必填", notes = "如果是修改合约确认提交，合约id必填")
    private Integer contractId;

    @ApiModelProperty(value = "如果是新建合约确认提交，该字段必填", notes = "如果是新建合约确认提交，该字段必填")
    private NewContract newContract;

    @ApiModelProperty(value = "如果是修改合约确认提交，如果有修改可填写该字段", notes = "如果是修改合约确认提交，如果有修改可填写该字段")
    private ModifyContract modifyContract;

    @ApiModelProperty(value = "开启审批流程时，审批流程参数不能为空", notes = "开启审批流程时，审批流程参数不能为空")
    private StartProcessInstance startProcessInstance;

    @ApiModelProperty(value = "已开流程再次提交时，使用该字段", notes = "已开流程再次提交时，使用该字段")
    private CompleteTask completeTask;

}
